package com.kaka.bus.engine.borrow.bank;

import android.app.Activity;

import com.kaka.bus.bean.BankBean;
import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.NamePhoneBean;
import com.kaka.bus.bean.Single;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangqi on 2016/10/19.
 * e-mail : ${email}
 * desc :
 */

public interface BackCardContract {

    interface View extends BaseView {
        void getBankListSuccess(HttpWrapper<List<BankBean>> wrapper);

        void getInfoSuccess(HttpWrapper<NamePhoneBean> wrapper);

        void time();

        void sendSmsSuccess(HttpWrapper<Single> bean);

        void sendServiceSuccess(HttpWrapper<String> bean);
    }

    interface Presenter extends BasePresenter<View> {
        boolean sendyzm(String phone,String bankcard,String tokenKey);

        void getBankList();

        void sendService(Map<String,String> map,String tokenKey,String token);

        void readInfo(String userId,String token);

        void router(Activity activity);
    }

}
